package cn.kgc.ffzw.day15.src.main.java.com.ffzw.ffzw;

public class Students {


    Student[] stus=new Student[10];

    public  void addNames(){
        for (int i = 0; i <stus.length ; i++) {
            stus[i]=new Student();
            stus[i].stuName="学员"+(i+1);
            stus[i].stuId=i+1;


        }
    }

    public void showStudents(){

        for (Student stu:stus) {
            stu.show();
        }
    }
}
